﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Http;

namespace Jizsoft.JFrame.Identity.Web.Api
{
    public class AccountController : ApiController
    {
        [HttpPost]
        public LoginResult Login(LoginParameter parameter)
        {
            return new LoginResult() { Name = parameter.UserName };
        }


        public class LoginResult
        {
            public string Name;
        }

        public class LoginParameter
        {
            public string UserName;
            public string Password;
            public string Verifycode;
        }
    }
}
